package com.wang.music.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wang.music.entity.Song;
import com.wang.music.vo.PageVO;
import com.wang.music.vo.SongVO_2;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 歌曲表 服务类
 * </p>
 *
 * @author zifan
 * @since 2021-03-05
 */
public interface SongService extends IService<Song> {

    Map<String, Object> getSongs(String key, PageVO pageVO);

    Map<String, Object> getSongList();

    Map<String, Object> addSong(Song song);

    Map<String, Object> updateSong(Song song);

    Map<String, Object> delSong(Song song);

    Map<String, Object> uploadPic(MultipartFile pic);

    Map<String, Object> uploadSong(MultipartFile song);

    Map<String, Object> uploadSongMinio(MultipartFile song);

    List<SongVO_2> likeSongOfName(String songName);
}
